package IC.Parser;

import java_cup.runtime.Symbol;

public class Token extends Symbol {
    public Token(int id, int line, String idString, Object value) {
        super(id, ++line, 0, value);
        this.line = line;
        this.idString = idString;
        
    }
    public int getLine() {
    	return line;
    }
    public int getId() {
    	return this.sym;
    }
    public String getIdString() {
    	return this.idString;
    }
    public String toString() {
    	String temp;
    	temp = idString;
    	if (value != null) {
    		temp += "(" + value + ")";
    	}
    	return temp;
    }
  private int line;
  private String idString;
}

